<?php
include "../config/koneksi.php";
  $num=1;
  session_start();
  $query = "SELECT * FROM `order` WHERE fr_username='".$_SESSION['user_id']."'";
  $result = mysql_query($query);
  //echo $query."<br />";
  while($temp = mysql_fetch_array($result)){
?>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Order User</title>
<link rel="stylesheet" type="text/css" href="css.css">
 <link rel="icon" type="image/png" href="w.png"/>
</head>

<body>
<body background="original.jpg">

<table width="705" height="169" border="0" class="nex" cellpadding="0" cellspacing="0" align="center" >
    <tr bgcolor="green">
      <td height="37" colspan="2"><div align="center"><strong>Orderan ke <?php 
      echo $num; 
      $num=$num+1;
      ?></strong></div></td>
    </tr>
    <form action="orderuser.php" method="post">
    <tr>

      <td width="150" height="32"> Nama Lengkap</td>
      <td width="304"><label>:
          <input name="namalengkap" type="text" id="namalengkap" required value="<?php echo $temp[1]; ?>" />
      </label></td>
    </tr>
    <tr>

      <td width="150" height="32"> email</td>
      <td width="304"><label>:
          <input name="email" type="text" id="email" required value="<?php echo $temp[7]; ?>" />
      </label></td>
    </tr>
        <tr>
      <td width="95" height="32"> nohp</td>
      <td width="304"><label>:
          <input name="nohp" type="text" id="nohp" required value="<?php echo $temp[8]; ?>" />
      </label></td>
    </tr>
        <tr>
      <td width="95" height="32"> Kodebarang</td>
      <td width="304"><label>:
          <input name="kodebarang" type="text" id="kodebarang"required value="<?php echo $temp[0]; ?>" />
      </label></td>
    </tr>
    <?php } ?>
    <tr bgcolor="green">
      <td height="26" colspan="2"><div align="right"></div></td>
    </tr>
    </form>
  </table>
</body>
</html>
